﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CdcSoftware.Pivotal.Applications.Core.Client;
using System.Data;
using CdcSoftware.Pivotal.Applications.Core.Common;
using CdcSoftware.Pivotal.Engine;
using CdcSoftware.Pivotal.Engine.Client.Services.Interfaces;
using Pcm.Retail.Client;
using System.Windows.Forms;
using CdcSoftware.Pivotal.Engine.UI.Forms;

namespace Pcm.Retail.Client.FormTasks
{
    public partial class RE_Staff : FormClientTask
    {
        /// <summary>
        /// This method gets called when the form meta data and data have both been loaded,
        /// and the form UI has finished drawing. Override this method to perform custom
        /// form initialization.
        /// </summary>
        /// <history>
        /// #Revision   Date        Author  Description
        /// 6.0.10.1    25-06-2012  DS      Initial Version
        /// </history>
        public override void OnFormInitialized()
        {
            try
            {
                base.OnFormInitialized();

                //DS: Masking the text box so that the POS cashier can't see the IC scanned.
                ((TextBox)this.FormControl.GetControlByName("ICScanCode").WindowsControl).PasswordChar = '*';
            }
            catch (Exception exc)
            {
                Globals.HandleException(exc);
            }
        }
    }
}
